FROM saga/alpine:3.6
MAINTAINER saga <mjxjn@vip.qq.com>

WORKDIR /mydb
VOLUME /mydb
COPY startup.sh /startup.sh

RUN apk --update add mysql mysql-client && \
    rm -f /var/cache/apk/*

COPY my.cnf /etc/mysql/my.cnf

EXPOSE 3306
CMD ["/startup.sh"]